<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>分析生命周期</title>
    <script type='text/javascript' src="../js/vue.js"></script>
</head>
<body>
    <div id="root">
      <h2>你好{{name}}</h2>
    </div>
    
</body>
<script type='text/javascript'>
    const vm = new Vue({
      el:'#root', 
      data: { 
        name:'李明'
      },
      beforeCreate() {
        console.log('beforeCreate',this._data)
        
        
      },
      created() {
        console.log('created',this._data)
         
      },
      beforeMount() {
        console.log('beforeMount',this._data)
         
      },
      mounted() {
        console.log('mounted',this._data)
        debugger;
      },

    })
</script>
</html>